<h1>Регистрация</h1>
<div id="registartion">
  <form  method="post" action="<?php echo W_ABSPATH?>reg">
    <div><div><div><div><div><div><div><div>
      <div class="formReg"><table class="typicalTable" cellspacing="0">
        <tr>
          <th>Имя: <span class="red">*</span></th>
          <td colspan="2"><form  method=POST><input maxlength="50" class="wideInput"   type="text"  name="firstName" value="<?php echo isset($_POST['firstName']) ? $_POST['firstName'] : null;?>" /></td>
        </tr>
        <tr>
          <th>Фамилия: <span class="red">*</span></th>
          <td colspan="2"><input maxlength="50" class="wideInput"  type="text" name="lastName" value="<?php echo isset($_POST['lastName']) ? $_POST['lastName'] : null;?>" /></td>
        </tr>
        <tr>
          <th>E-mail: <span class="red">*</span></th>
          <td colspan="2"><input type="text" maxlength="80" class="wideInput" name="eMail" value="<?php echo isset($_POST['eMail']) ? $_POST['eMail'] : null;?>" /></td>
        </tr>
        <tr>
          <th>Пароль: <span class="red">*</span></th>
          <td colspan="2"><input class="wideInput" maxlength="32" type="password" name="password" /></td>
        </tr>
        <tr>
          <th>Подтверждение: <span class="red">*</span></th>
          <td colspan="2"><input class="wideInput" maxlength="32" type="password" name="password2" /></td>
        </tr>
        <tr>
          <th></th>
          <td id="tdPassDescr" colspan="2">Пароль должен состоять как минимум из 6 символов и содержать буквы и цифры</td>
        </tr>    
        <tr>
          <th>Страна: </th>
          <td colspan="2">
            <?php 
            View_Select::showSelect(Adress_Country::getAllCountries(), 'ID_country', 'name', isset($_POST['country']) ? $_POST['country'] : -1, '', '', 'country', 'Выберите страну');
            ?>
          </td>
        </tr>    
        <tr>
          <th>Город: </th>
          <td colspan="2"><input type="text" maxlength="80" class="wideInput" name="city" value="<?php echo isset($_POST['city']) ? $_POST['city'] : null;?>" /></td>
        </tr>            
        <tr>
          <th>Дата рождения: </th>
          <td colspan="2">
            <?php include(BLOCKS . 'select/date.php'); ?>
          </td>
        </tr> 
        <tr>
          <th>Семейное положение: </th>
          <td colspan="2">
            <?php include(BLOCKS . 'select/family_status.php'); ?>
          </td>
        </tr>
        <tr>
          <th>Пол: </th>
          <td colspan="2">
            <?php include(BLOCKS . 'select/sex.php'); ?>
          </td>
        </tr> 
        <tr>
          <th>Защитный код:</th>
          <td id="tdCapcha">
            <img id="cryptogram" src="<?php echo W_ABSPATH?>content/pages/authorization/capture/script.php?create=1" alt="captcha" />
            <a style="cursor:pointer" onclick="javascript:document.getElementById('cryptogram').src='<?php echo W_ABSPATH?>content/pages/authorization/capture/script.php?create='+Math.round(Math.random(0)*1000)+1"><img src="<?php echo W_IMAGES?>icons/reload.jpg" alt="Reload" />Обновить код</a>
          </td>
          <td>
            <p>Введите защитный код, отображенный на картинке: <span class="red">*</span></p>
            <p><input maxlength="8" type="text" name="keystring" id="keystring" /></p>
          </td>
        </tr>
        <tr>
          <th></th>
          <td colspan="2"><input type="checkbox" name="userAgreement" <?php echo isset($_POST['userAgreement']) ? ' checked="checked"' : '';?> />C условиями пользовательского соглашения ознакомлен и согласен.</td>
        </tr>
        <tr>
        </tr>
        <tr>
          <th></th>
          <td colspan="2"><input type="submit" name="regist" value="Зарегистрироваться" /></td>
        </tr>
      </table></div>
    </div></div></div></div></div></div></div></div>
  </form>
</div>